package com.md.entity;

import java.util.Arrays;
import java.util.List;


public class Teacher {
    private String tName;
    private String[] tCourse;
    private List<String> tStudent;

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String[] gettCourse() {
        return tCourse;
    }

    public void settCourse(String[] tCourse) {
        this.tCourse = tCourse;
    }

    public List<String> gettStudent() {
        return tStudent;
    }

    public void settStudent(List<String> tStudent) {
        this.tStudent = tStudent;
    }

    public Teacher() {
    }

    public Teacher(String tName, String[] tCourse, List<String> tStudent) {
        this.tName = tName;
        this.tCourse = tCourse;
        this.tStudent = tStudent;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tName='" + tName + '\'' +
                ", tCourse=" + Arrays.toString(tCourse) +
                ", tStudent=" + tStudent +
                '}';
    }

    public void teach() {
        System.out.println(gettName() + "老师给" + gettStudent() + "教" + Arrays.toString(gettCourse()));
    }
}
